@extends('layouts.comment')
@section('css')
<style>
    td{
        text-align: center;
    }
</style>
@endsection
@section('content')
<div id="dcMain">
    <div id="urHere">租伴 管理中心 > 用户信息</div>
    <div id="index" class="mainBox" >
        <div class="indexBox">
            <div class="boxTitle">信息列表</div>
            <div style="margin-top: 15px;margin-bottom: 15px">
                <form action="user.html" method="get">
                    昵称/租号：<input name="nickname" type="text" class="inpMain" value="@if(isset($nickname)){{$nickname}}@endif" size="20" />
                    性别：<select name="sex">
                        <option value="">全部</option>
                        <option value="1" @if(isset($sex) && $sex === '1') selected @endif > 男</option>
                        <option value="2" @if(isset($sex) && $sex === '2') selected @endif> 女</option>
                    </select>
                    基本信息审核：<select name="status">
                        <option value="">全部</option>
                        <option value="1" @if(isset($status) && $status === '1') selected @endif> 无</option>
                        <option value="0" @if(isset($status) && $status === '0') selected @endif> 需要审核</option>
                        <option value="-1" @if(isset($status) && $status === '-1') selected @endif> 被拒绝</option>
                    </select>
                    vip状态：<select name="vip">
                        <option value="">全部</option>
                        <option value="0" @if(isset($vip) && $vip === '0') selected @endif > 未开通</option>
                        <option value="1" @if(isset($vip) && $vip === '1') selected @endif > 已开通</option>
                    </select>
                    用户状态：<select name="is_feng">
                        <option value="">全部</option>
                        <option value="0" @if(isset($is_feng) && $is_feng === '0') selected @endif > 禁用</option>
                        <option value="1" @if(isset($is_feng) && $is_feng === '1') selected @endif > 启用</option>
                    </select>
                    <input  class="btnGray" type="submit" value="筛选" />
                </form>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="7" class="tableBasic">
                <tr>
                    <td width="100" valign="top">租号</td>
                    <td width="120" valign="top">昵称 </td>
                    <td width="120" valign="top">手机号 </td>
                    <td width="250" valign="top">个人说明 </td>
                    <td width="150" valign="top">注册时间</td>
                    <td width="100" valign="top">租币 </td>
                    <td width="100" valign="top">vip</td>
                    <td width="100" valign="top">照片认证</td>
                    <td width="100" valign="top">实名认证 </td>
                    <td width="100" valign="top">微信认证 </td>
                    <td width="100" valign="top">芝麻认证 </td>
                    <td valign="top">操作 </td>
                </tr>
                @if(!empty($logs))
                @foreach($logs as $log)
                <tr>
                    <td valign="top">{{$log['id']}}</td>
                    <td valign="top">{{$log['nickname']}}</td>
                    <td valign="top">{{$log['mobile']}}</td>
                    <td valign="top">{{$log['personal']}}</td>
                    <td valign="top">{{date('Y-m-d H:s:i',$log['create_time'])}}</td>
                    <td valign="top">{{$log['money']}}</td>
                    <td valign="top">
                        @if($log['vip']<time())
                        未开通
                        @else
                        <span style="color: #ff0000">已开通</span>
                        @endif
                    </td>
                    <td valign="top">
                        @if($log['picture'] == 0)
                        未认证
                        @elseif($log['picture'] == 2)
                        <span style="color: red">去审核</span>
                        @elseif($log['picture'] == 1)
                        <span style="color:green">已认证</span>
                        @endif
                    </td>
                    <td valign="top">
                        @if($log['idcard'] == 0)
                        未认证
                        @elseif($log['idcard'] == 1)
                        <span style="color:green">已认证</span>
                        @endif
                    </td>
                    <td valign="top">
                        @if($log['weixin'] == '')
                        未认证
                        @else
                        <span style="color:green">已认证</span>
                        @endif
                    </td>
                    <td valign="top">
                        @if($log['zhima'] == 0)
                        未认证
                        @elseif($log['zhima'] == 1)
                        <span style="color:green">已认证</span>
                        @endif
                    </td>
                    <td valign="top"><a  style="cursor: pointer" href="top.html?id={{$log['id']}}">【置顶】</a>【查看】</td>
                </tr>
                @endforeach
                @endif
            </table>
            @if(!empty($total))
            <div class="pager">总计 {{$total}} 个记录，共 {{$pagenum}} 页，当前第 {{$cpage}} 页 | <a href="user.html?page=1{{$url}}">第一页</a> <a href="user.html?page={{$prev}}{{$url}}">上一页</a> <a href="user.html?page={{$next}}{{$url}}">下一页</a> <a href="user.html?page={{$pagenum}}{{$url}}">最末页</a></div>
            @endif
        </div>
    </div>
</div>
@endsection
@section('js')
@endsection